package managers.messengerManager.services;

import managers.messengerManager.ManagePacketRunnable;
import utils.StackTracePrinter;


public class DefaultListeningService extends Service {

	public DefaultListeningService() {
		super("Listening");
	}

	@Override
	public void run() {
		listen();
	}

	private void listen() {

		while (true) {
			try {
				new Thread(new ManagePacketRunnable(manager.getSingleProtocol().receive())).start();
			} catch (Exception e) {
				//do nothing
			}
		}
	}



}
